<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property bool $assess 评价:1=是,2=否
 * @property float $amount 总价
 * @property int $goods_id 商品
 * @property int $id
 * @property int $num 数量
 * @property int $order_id 订单
 * @property int $spec_id 规格
 * @property string $createtime
 * @property-read \app\model\Goods $goods
 * @property-read \app\model\GoodsOrders $orders
 * @property-read \app\model\GoodsSpec $spec
 * @mixin \think\Model
 */
class GoodsOrdersDetail extends Model
{
	
	protected $createTime = 'createtime';
	function goods()
	{
		return $this->belongsTo(Goods::class,'goods_id');
	}
	
	function spec()
	{
		return $this->belongsTo(GoodsSpec::class,'spec_id');
	}
	
	function orders()
	{
		return $this->belongsTo(GoodsOrders::class,'order_id');
	}
	
	
}
